<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
		<title>{% block title %}{% endblock %}</title>
        <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/footer.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
        <script src="/static/bootstrap/js/bootstrap.min.js"></script>
        <script src="/static/jquery.js" type="text/javascript"></script>

		{% block script %}
		{% endblock %}
	</head>
	<body>
     <div id="wrap">
		<table align=center width=100%>
			<tr>
				<td width=20% >About OJ</td>
				<td width=20% >Problems</td>
				<td width=20% >Rank</td>
				<td width=20% >Contests</td>
				<td width=20% >User</td>
			</tr>
			<tr>
				<td>
					<a href=/ >HOME</a><br>
					<a href=/bbs >BBS</a><br>
				</td>
				<td>
					<a href=/problems >Problem Lists</a><br>
					<a href=/status >Submitions</a><br>
				</td>
				<td>
					<a href=/rank >Rank</a><br>
				</td>
				<td>
					<a href=/contest >Contests</a><br>
				</td>
				<td>
					{% if login %}
					<a href=/user/{{login.username}}/>{{login.username}}</a><br>
					{{login.AC}}/{{login.submit}}<br>
					{% if login.isManager %}
					<a href=/admin >Admin</a>
					{% endif %}
					<a href=/logout/ >logout</a>
					{% else %}
					<form method=post action=/login/ >
						<input type=text name=username style="width:100"><br>
						<input type=password name=password style="width:100"><br>
						<input type=submit name=submit value=Submit>
					<a href=/register/ >register</a>
					</form>
					{% endif %}
				</td>
			</tr>
		</table>
		{% block middle %}
		{% endblock %}
      </div>
		<div id="footer">
      <div class="container">
        <p class="muted credit">NEU ACM team 2004-2013. OJ designed by Philo Yang | yangzhe1991</p>
      </div>
    </div>

	</body>


</html>
